home *** CD-ROM | disk | FTP | other *** search
-
-
-
- TTTTkkkk____MMMMaaaannnnaaaaggggeeeeGGGGeeeeoooommmmeeeettttrrrryyyy((((3333)))) TTTTkkkk (((( )))) TTTTkkkk____MMMMaaaannnnaaaaggggeeeeGGGGeeeeoooommmmeeeettttrrrryyyy((((3333))))
-
-
-
- _________________________________________________________________
-
- NNNNAAAAMMMMEEEE
- Tk_ManageGeometry - arrange to handle geometry requests for
- a window
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>>
-
- TTTTkkkk____MMMMaaaannnnaaaaggggeeeeGGGGeeeeoooommmmeeeettttrrrryyyy(_t_k_w_i_n, _p_r_o_c, _c_l_i_e_n_t_D_a_t_a)
-
- AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
- Tk_Window _t_k_w_i_n (in) Token for window to
- be managed.
-
- Tk_GeometryProc *_p_r_o_c (in) Procedure to invoke
- to handle geometry
- requests on _t_k_w_i_n,
- or NULL to indicate
- that _t_k_w_i_n's
- geometry shouldn't
- be managed anymore.
-
- ClientData _c_l_i_e_n_t_D_a_t_a (in) Arbitrary one-word
- value to pass to
- _p_r_o_c.
- _________________________________________________________________
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- TTTTkkkk____MMMMaaaannnnaaaaggggeeeeGGGGeeeeoooommmmeeeettttrrrryyyy arranges for _p_r_o_c to be invoked whenever
- TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt is called to change the desired geometry
- for _t_k_w_i_n. TTTTkkkk____MMMMaaaannnnaaaaggggeeeeGGGGeeeeoooommmmeeeettttrrrryyyy is typically invoked by
- geometry managers when they take control of a window's
- geometry.
-
- _P_r_o_c should have arguments and results that match the type
- TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyPPPPrrrroooocccc:
- typedef void Tk_GeometryProc(
- ClientData _c_l_i_e_n_t_D_a_t_a,
- Tk_Window _t_k_w_i_n);
- The parameters to _p_r_o_c will be identical to the
- corresponding parameters passed to TTTTkkkk____MMMMaaaannnnaaaaggggeeeeGGGGeeeeoooommmmeeeettttrrrryyyy.
- Typically, _c_l_i_e_n_t_D_a_t_a points to a data structure containing
- application-specific information about how to manage _t_k_w_i_n's
- geometry.
-
- _P_r_o_c will be called during each call to TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt
- for _t_k_w_i_n. _P_r_o_c can use macros like TTTTkkkk____RRRReeeeqqqqWWWWiiiiddddtttthhhh to retrieve
- the arguments passed to TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt. It should do
- what it can to meet the request, subject to the space
- available in _t_k_w_i_n's parent and its own policies for
-
-
-
- Page 1 (printed 7/23/95)
-
-
-
-
-
-
- TTTTkkkk____MMMMaaaannnnaaaaggggeeeeGGGGeeeeoooommmmeeeettttrrrryyyy((((3333)))) TTTTkkkk (((( )))) TTTTkkkk____MMMMaaaannnnaaaaggggeeeeGGGGeeeeoooommmmeeeettttrrrryyyy((((3333))))
-
-
-
- managing geometry. If _p_r_o_c can meet the request, it should
- call procedures like TTTTkkkk____RRRReeeessssiiiizzzzeeeeWWWWiiiinnnnddddoooowwww or TTTTkkkk____MMMMoooovvvveeeeWWWWiiiinnnnddddoooowwww to
- carry out the actual geometry change. In some cases it may
- make sense for _p_r_o_c not to process the geometry request
- immediately, but rather to schedule a procedure to do it
- later, using TTTTkkkk____DDDDooooWWWWhhhheeeennnnIIIIddddlllleeee. This approach is likely to be
- more efficient in situations where several geometry requests
- occur simultaneously: only a single geometry change will be
- made, after all the requests have been registered.
-
- If _p_r_o_c is specified as NULL, then the geometry handler for
- _t_k_w_i_n will be eliminated, leaving _t_k_w_i_n unmanaged. Calls to
- TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt have no effect for unmanaged windows
- except to store the requested size in a structure where they
- can be retrieved by macros like TTTTkkkk____RRRReeeeqqqqWWWWiiiiddddtttthhhh. If
- TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt has never been invoked for a window then
- it is unmanaged.
-
-
- KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
- callback, geometry, managed, request, unmanaged
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 2 (printed 7/23/95)
-
-
-
-